-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for borders in add_label #7147
Add support for borders in add_label #7147
Conversation
The first version uses |
Codecov Report
@@ Coverage Diff @@
## master #7147 +/- ##
==========================================
+ Coverage 89.75% 89.75% +<.01%
==========================================
Files 444 444
Lines 79312 79323 +11
Branches 12681 12684 +3
==========================================
+ Hits 71185 71196 +11
Misses 5344 5344
Partials 2783 2783 |
mne/viz/backends/_pysurfer_mayavi.py
Outdated
@@ -128,7 +128,7 @@ def mesh(self, x, y, z, triangles, color, opacity=1.0, shading=False, | |||
|
|||
def contour(self, surface, scalars, contours, line_width=1.0, opacity=1.0, | |||
vmin=None, vmax=None, colormap=None, | |||
normalized_colormap=False): | |||
normalized_colormap=False, tube=False, color=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tube
seems to parametrize the size of the tube. Basically I see it can be a bool or an int. Is it different from line_width? also seeing a new param without any docstring update triggers a "why?".
@agramfort this table hopefully demonstrates the differences between lines and tubes. By the way, I slightly modified
As discussed offline, I'll modify the API of |
I like the new version, the thicker lines are easier to see. Looking forward to seeing "line" mode with a roughly equivalent unified |
This is ready for reviews now @agramfort, @larsoner
I could totally take care of this in a follow-up PR |
Usually the "killed" means that there is a memory problem. If you "mprof run" the example then "mprof plot" it and it's near or over 2GB then CircleCI is likely to fail in this manner. Is it possible pyvista isn't clearing memory properly? |
Where did you see 'killed'? Do you mean #7150? |
It's totally possible that it's related to memory management, I will investigate |
Yes sorry in #7150 |
thx @GuillaumeFavelier ! one more down ! |
* Try support for tube as borders * Trigger plot_time_frequency_mixed_norm_inverse.py * Fix scalar_thresh * Improve coverage * Fix plot_visualize_evoked.py * Update contour API * Fix style
* Try support for tube as borders * Trigger plot_time_frequency_mixed_norm_inverse.py * Fix scalar_thresh * Improve coverage * Fix plot_visualize_evoked.py * Update contour API * Fix style
* WIP: Recreate our helmet * Fix roll * Use https://github.com/mne-tools/mne-python/pull/7147\#issuecomment-566963090 * Change width slightly * Add polygon_offset parameter to surface() * Add polygon_offset parameter to mesh() * Use polygon_offset to resolve coincident topology * Fix contour() * Use lines instead of tubes * Fix pickable issue * Fix cropped helmet with pyvista Co-authored-by: Guillaume Favelier <[email protected]>
* WIP: Recreate our helmet * Fix roll * Use https://github.com/mne-tools/mne-python/pull/7147\#issuecomment-566963090 * Change width slightly * Add polygon_offset parameter to surface() * Add polygon_offset parameter to mesh() * Use polygon_offset to resolve coincident topology * Fix contour() * Use lines instead of tubes * Fix pickable issue * Fix cropped helmet with pyvista Co-authored-by: Guillaume Favelier <[email protected]>
This PR adds support for the
borders
parameter in theadd_label()
function of the_Brain
object.Closes part of #7143